package com.toman.widget;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.ImageView;

/**
 * Created by 邹苏隆 on 2018/6/29.
 * description：
 */

    public class MyImageView extends android.support.v7.widget.AppCompatImageView {

        public MyImageView (Context context, AttributeSet attrs) {
            super(context, attrs);
        }

        @Override
        protected void onDraw(Canvas canvas) {
            try {
                super.onDraw(canvas);
            } catch (Exception e) {
                System.out
                        .println("MyImageView  -> onDraw() Canvas: trying to use a recycled bitmap");
            }
        }
    }
